<?php
/**
 * Created by PhpStorm.
 * User: 王松
 * Time: 2017/7/6 17:21
 */

namespace App\Project\Printer;

use App\Models\MedicalAuxiliary;
use App\Project\Scene\MedicalScene;

class AuxiliaryPrinter extends PrinterAbstract
{
    protected $scene;

    public function __construct(MedicalAuxiliary $auxiliary, MedicalScene $scene)
    {
        $this->model = $auxiliary;
        $this->scene = $scene;
    }

    public function blood()
    {
        if (!$this->model->blood) {
            return '';
        }

        $str = '';

        $print = [
//            $this->fe('blood', 'time'),
            '血糖'. $this->ft('auxiliary.site', $this->fe('blood', 'site'), '(', ')'),
        ];

        $str .= $this->getPrintStr('', $print);

        $print = [
            $this->fe('blood', 'glu0.result_n', '葡萄糖[0小时]', $this->fe('blood', 'glu0.unit')),
            $this->fe('blood', 'glu0.allergy', '药敏结果'),
            $this->fe('blood', 'glu0.critical', '危急提示'),
            $this->fe('blood', 'glu0.remark', '备注'),
            $this->fe('blood', 'glu2.result_n', '葡萄糖[餐后2小时]', $this->fe('blood', 'glu2.unit')),
            $this->fe('blood', 'glu2.allergy', '药敏结果'),
            $this->fe('blood', 'glu2.critical', '危急提示'),
            $this->fe('blood', 'glu2.remark', '备注'),
        ];

        $str .= $this->getPrintStr('', $print);

        return ['time'=> $this->model->blood['time'], 'print' => $str];
    }

    public function insulin()
    {
        if (!$this->model->insulin) {
            return '';
        }

        $print = [
//            $this->fe('insulin', 'time'),
            '胰岛素'. $this->ft('auxiliary.site', $this->fe('insulin', 'site'), '(', ')'),
            $this->fe('insulin', 'ins0.result_n', '胰岛素[0]', 'uIU/mL'),
            $this->fe('insulin', 'ins0.allergy', '药敏结果'),
            $this->fe('insulin', 'ins0.critical', '危急提示'),
            $this->fe('insulin', 'ins0.remark', '备注'),
            $this->fe('insulin', 'ins120.result_n', '胰岛素[120]', 'uIU/mL'),
            $this->fe('insulin', 'ins120.allergy', '药敏结果'),
            $this->fe('insulin', 'ins120.critical', '危急提示'),
            $this->fe('insulin', 'ins120.remark', '备注'),
        ];

        return ['time'=> $this->model->insulin['time'], 'print' => $this->getPrintStr('', $print)];
    }

    public function peptideC()
    {
        if (!$this->model->peptide_c) {
            return '';
        }

        $print = [
//            $this->fe('peptide_c', 'time'),
            'C肽'.$this->ft('auxiliary.site', $this->fe('peptide_c', 'site'), '(', ')'),
            $this->fe('peptide_c', 'c-p0.result_n', 'C肽[0]', 'ng/mL'),
            $this->fe('peptide_c', 'c-p0.allergy', '药敏结果'),
            $this->fe('peptide_c', 'c-p0.critical', '危急提示'),
            $this->fe('peptide_c', 'c-p0.remark', '备注'),
            $this->fe('peptide_c', 'c-p120.result_n', 'C肽[120]', 'uIU/mL'),
            $this->fe('peptide_c', 'c-p120.allergy', '药敏结果'),
            $this->fe('peptide_c', 'c-p120.critical', '危急提示'),
            $this->fe('peptide_c', 'c-p120.remark', '备注'),
        ];

        return ['time'=> $this->model->peptide_c['time'], 'print' => $this->getPrintStr('', $print)];
    }

    public function ogtt()
    {
        $ogtt = $this->model->ogtt;

        if (!$ogtt) {
            return '';
        }

        if ($this->scene->isWestern()) {
            $print = [
                'ogtt'.$this->ft('auxiliary.site', $this->fe('ogtt', 'site'), '(', ')'),
            ];
        } else {
            $print = [
                '胰岛功能'.$this->ft('auxiliary.site', $this->fe('ogtt', 'site'), '(', ')'),
            ];
        }

        return ['time'=> $this->model->ogtt['time'], 'print' => $this->getPrintStr('', $print)];
    }

    public function saccharify()
    {
        if (!$this->model->saccharify) {
            return '';
        }

        $print = [
//            $this->fe('saccharify', 'time'),
            '糖化'.$this->ft('auxiliary.site', $this->fe('saccharify', 'site'), '(', ')'),
            $this->fe('saccharify', 'hba1c.result_n', '糖化血红蛋白值', '%'),
            $this->fe('saccharify', 'hba1c.allergy', '药敏结果'),
            $this->fe('saccharify', 'hba1c.critical', '危急提示'),
            $this->fe('saccharify', 'hba1c.remark', '备注'),
            $this->fe('saccharify', 'ga%.result_n', '糖化白蛋白含量', '%'),
            $this->fe('saccharify', 'ga%.allergy', '药敏结果'),
            $this->fe('saccharify', 'ga%.critical', '危急提示'),
            $this->fe('saccharify', 'ga%.remark', '备注'),
        ];

        return ['time'=> $this->model->saccharify['time'], 'print' => $this->getPrintStr('', $print)];
    }

    public function diabetesAntibody()
    {
        $antibody = $this->model->diabetes_antibody;
        if (!$antibody) {
            return '';
        }

        $print = [
//            $this->fe('diabetes_antibody', 'time'),
            '1型糖尿病相关抗体' . $this->ft('auxiliary.site', $this->fe('diabetes_antibody', 'site'), '(', ')'),
        ];

        if ($result = $this->fe('diabetes_antibody', 'ica.result_a.result_b')) {
            $print[] = $this->ft(
                'auxiliary.result_type.result_b.value',
                $result, '抗胰岛细胞抗体(IgG型) 结果',
                $this->fe('diabetes_antibody', 'ica.result_a.result_n')
            );
        } else {
            $print[] = $this->ft('auxiliary.result_type.result_b.value', $result, '抗胰岛细胞抗体(IgG型) 结果');
        }
        $print[] = $this->fe('diabetes_antibody', 'ica.allergy', '药敏结果');
        $print[] = $this->fe('diabetes_antibody', 'ica.critical', '危急提示');
        $print[] = $this->fe('diabetes_antibody', 'ica.remark', '备注');

        if ($result = $this->fe('diabetes_antibody', 'gad.result_a.result_b')) {
            $print[] = $this->ft(
                'auxiliary.result_type.result_b.value',
                $result, '抗谷氨酸脱羟酶抗体(IgG型) 结果',
                $this->fe('diabetes_antibody', 'gad.result_a.result_n')
            );
        } else {
            $print[] = $this->ft('auxiliary.result_type.result_b.value', $result, '抗谷氨酸脱羟酶抗体(IgG型) 结果');
        }
        $print[] = $this->fe('diabetes_antibody', 'gad.allergy', '药敏结果');
        $print[] = $this->fe('diabetes_antibody', 'gad.critical', '危急提示');
        $print[] = $this->fe('diabetes_antibody', 'gad.remark', '备注');

        if ($result = $this->fe('diabetes_antibody', 'ia2.result_a.result_b')) {
            $print[] = $this->ft(
                'auxiliary.result_type.result_b.value',
                $result, '抗酪氨酸磷酸酶抗体 结果',
                $this->fe('diabetes_antibody', 'ia2.result_a.result_n')
            );
        } else {
            $print[] = $this->ft('auxiliary.result_type.result_b.value', $result, '抗酪氨酸磷酸酶抗体 结果');
        }
        $print[] = $this->fe('diabetes_antibody', 'ia2.allergy', '药敏结果');
        $print[] = $this->fe('diabetes_antibody', 'ia2.critical', '危急提示');
        $print[] = $this->fe('diabetes_antibody', 'ia2.remark', '备注');

        if ($result = $this->fe('diabetes_antibody', 'iaa.result_a.result_b')) {
            $print[] = $this->ft(
                'auxiliary.result_type.result_b.value',
                $result, '胰岛素自身抗体 结果',
                $this->fe('diabetes_antibody', 'iaa.result_a.result_n')
            );
        } else {
            $print[] = $this->ft('auxiliary.result_type.result_b.value', $result, '胰岛素自身抗体 结果');
        }
        $print[] = $this->fe('diabetes_antibody', 'iaa.allergy', '药敏结果');
        $print[] = $this->fe('diabetes_antibody', 'iaa.critical', '危急提示');
        $print[] = $this->fe('diabetes_antibody', 'iaa.remark', '备注');

        return ['time'=> $this->model->diabetes_antibody['time'], 'print' => $this->getPrintStr('', $print)];
    }

    public function acr()
    {
        if (!$this->model->acr) {
            return '';
        }

        $print = [
            $this->fe('acr', 'acr.result_n', '尿白蛋白肌酐比', 'mg/mmolCr'),
            $this->fe('acr', 'acr.allergy', '药敏结果'),
            $this->fe('acr', 'acr.critical', '危急提示'),
            $this->fe('acr', 'acr.remark', '备注'),
        ];

        if ($this->scene->isWestern()) {
            array_unshift($print, 'ACR'.$this->ft('auxiliary.site', $this->fe('acr', 'site'), '(', ')'));
        } else {
            array_unshift($print, '尿ACR'.$this->ft('auxiliary.site', $this->fe('acr', 'site'), '(', ')'));
        }

        return ['time'=> $this->model->acr['time'], 'print' => $this->getPrintStr('', $print)];
    }

    public function uaer()
    {
        if (!$this->model->uaer) {
            return '';
        }

        if ($this->scene->isWestern()) {
            $print = [
                '8h尿蛋白排泄率'.$this->ft('auxiliary.site', $this->fe('uaer', 'site'), '(', ')'),
                $this->fe('uaer', '8hu-v.result_n', '8小时尿量', 'ml'),
                $this->fe('uaer', '8hu-v.allergy', '药敏结果'),
                $this->fe('uaer', '8hu-v.critical', '危急提示'),
                $this->fe('uaer', '8hu-v.remark', '备注'),

                $this->fe('uaer', 'uma1b.result_n', '尿微量白蛋白', 'mg/L'),
                $this->fe('uaer', 'uma1b.allergy', '药敏结果'),
                $this->fe('uaer', 'uma1b.critical', '危急提示'),
                $this->fe('uaer', 'uma1b.remark', '备注'),

                $this->fe('uaer', 'uae.result_n', '尿白蛋白排泄率', 'μg/min'),
                $this->fe('uaer', 'uae.allergy', '药敏结果'),
                $this->fe('uaer', 'uae.critical', '危急提示'),
                $this->fe('uaer', 'uae.remark', '备注'),
            ];
        } else {
            $print = [
                '24h尿蛋白排泄分析'.$this->ft('auxiliary.site', $this->fe('uaer', 'site'), '(', ')'),
                $this->fe('uaer', 'nl.result_n', '尿量', 'mL'),
                $this->fe('uaer', 'nl.allergy', '药敏结果'),
                $this->fe('uaer', 'nl.critical', '危急提示'),
                $this->fe('uaer', 'nl.remark', '备注'),

                $this->fe('uaer', 'ma.result_n', '尿微白蛋白', 'mg/L'),
                $this->fe('uaer', 'ma.allergy', '药敏结果'),
                $this->fe('uaer', 'ma.critical', '危急提示'),
                $this->fe('uaer', 'ma.remark', '备注'),

                $this->fe('uaer', 'ucsfp.result_n', '体液总蛋白', 'g/L'),
                $this->fe('uaer', 'ucsfp.allergy', '药敏结果'),
                $this->fe('uaer', 'ucsfp.critical', '危急提示'),
                $this->fe('uaer', 'ucsfp.remark', '备注'),

                $this->fe('uaer', '24hma.result_n', '24h尿微白蛋白', 'mg/24h'),
                $this->fe('uaer', '24hma.allergy', '药敏结果'),
                $this->fe('uaer', '24hma.critical', '危急提示'),
                $this->fe('uaer', '24hma.remark', '备注'),

                $this->fe('uaer', '24hutp.result_n', '24h尿蛋白定量', 'mg/24h'),
                $this->fe('uaer', '24hutp.allergy', '药敏结果'),
                $this->fe('uaer', '24hutp.critical', '危急提示'),
                $this->fe('uaer', '24hutp.remark', '备注'),
            ];
        }

        return ['time'=> $this->model->uaer['time'], 'print' => $this->getPrintStr('', $print)];
    }

    public function urineRoutine()
    {
        if (!$this->model->urine_routine) {
            return '';
        }

        $print = [
//            $this->fe('urine_routine', 'time'),
            '尿常规'.$this->ft('auxiliary.site', $this->fe('urine_routine', 'site'), '(', ')'),
            $this->fe('urine_routine', 'sg.result_n', '比重'),
            $this->fe('urine_routine', 'sg.allergy', '药敏结果'),
            $this->fe('urine_routine', 'sg.critical', '危急提示'),
            $this->fe('urine_routine', 'sg.remark', '备注'),

            $this->fe('urine_routine', 'ph.result_n', '酸碱度(PH)'),
            $this->fe('urine_routine', 'ph.allergy', '药敏结果'),
            $this->fe('urine_routine', 'ph.critical', '危急提示'),
            $this->fe('urine_routine', 'ph.remark', '备注'),
        ];

        if ($result = $this->fe('urine_routine', 'wbc.result_a.result_b')) {
            $print[] = $this->ft(
                'auxiliary.result_type.result_b.value',
                $result, '白细胞(中性粒细胞酯酶) 结果',
                $this->fe('urine_routine', 'wbc.result_a.result_n')
            );
        } else {
            $print[] = $this->ft('auxiliary.result_type.result_b.value', $result, '白细胞(中性粒细胞酯酶) 结果');
        }

        $print[] = $this->fe('urine_routine', 'wbc.allergy', '药敏结果');
        $print[] = $this->fe('urine_routine', 'wbc.critical', '危急提示');
        $print[] = $this->fe('urine_routine', 'wbc.remark', '备注');

        if ($result = $this->fe('urine_routine', 'pro.result_a.result_b')) {
            $print[] = $this->ft(
                'auxiliary.result_type.result_b.value',
                $result, '蛋白(白蛋白) 结果',
                $this->fe('urine_routine', 'pro.result_a.result_n')
            );
        } else {
            $print[] = $this->ft('auxiliary.result_type.result_b.value', $result, '蛋白(白蛋白) 结果');
        }

        $print[] = $this->fe('urine_routine', 'pro.allergy', '药敏结果');
        $print[] = $this->fe('urine_routine', 'pro.critical', '危急提示');
        $print[] = $this->fe('urine_routine', 'pro.remark', '备注');

        if ($result = $this->fe('urine_routine', 'glu.result_a.result_b')) {
            $print[] = $this->ft(
                'auxiliary.result_type.result_b.value',
                $result, '葡萄糖 结果',
                $this->fe('urine_routine', 'glu.result_a.result_n')
            );
        } else {
            $print[] = $this->ft('auxiliary.result_type.result_b.value', $result, '葡萄糖 结果');
        }

        $print[] = $this->fe('urine_routine', 'glu.allergy', '药敏结果');
        $print[] = $this->fe('urine_routine', 'glu.critical', '危急提示');
        $print[] = $this->fe('urine_routine', 'glu.remark', '备注');

        if ($result = $this->fe('urine_routine', 'ket.result_a.result_b')) {
            $print[] = $this->ft(
                'auxiliary.result_type.result_b.value',
                $result, '酮体 结果',
                $this->fe('urine_routine', 'ket.result_a.result_n')
            );
        } else {
            $print[] = $this->ft('auxiliary.result_type.result_b.value', $result, '酮体 结果');
        }

        $print[] = $this->fe('urine_routine', 'ket.allergy', '药敏结果');
        $print[] = $this->fe('urine_routine', 'ket.critical', '危急提示');
        $print[] = $this->fe('urine_routine', 'ket.remark', '备注');

        $print[] = $this->fe('urine_routine', 'ubg.result_n', '尿胆原', 'umol/L');
        $print[] = $this->fe('urine_routine', 'ubg.allergy', '药敏结果');
        $print[] = $this->fe('urine_routine', 'ubg.critical', '危急提示');
        $print[] = $this->fe('urine_routine', 'ubg.remark', '备注');


        if ($result = $this->fe('urine_routine', 'bil.result_a.result_b')) {
            $print[] = $this->ft(
                'auxiliary.result_type.result_b.value',
                $result, '胆红素 结果',
                $this->fe('urine_routine', 'bil.result_a.result_n')
            );
        } else {
            $print[] = $this->ft('auxiliary.result_type.result_b.value', $result, '胆红素 结果');
        }

        $print[] = $this->fe('urine_routine', 'bil.allergy', '药敏结果');
        $print[] = $this->fe('urine_routine', 'bil.critical', '危急提示');
        $print[] = $this->fe('urine_routine', 'bil.remark', '备注');

        if ($result = $this->fe('urine_routine', 'bld.result_a.result_b')) {
            $print[] = $this->ft(
                'auxiliary.result_type.result_b.value',
                $result, '红细胞(潜血) 结果',
                $this->fe('urine_routine', 'bld.result_a.result_n')
            );
        } else {
            $print[] = $this->ft('auxiliary.result_type.result_b.value', $result, '红细胞(潜血) 结果');
        }

        $print[] = $this->fe('urine_routine', 'bld.allergy', '药敏结果');
        $print[] = $this->fe('urine_routine', 'bld.critical', '危急提示');
        $print[] = $this->fe('urine_routine', 'bld.remark', '备注');

        $print[] = $this->fe('urine_routine', 'ld.result_n', '尿液颜色(LD)', '');
        $print[] = $this->fe('urine_routine', 'ld.allergy', '药敏结果');
        $print[] = $this->fe('urine_routine', 'ld.critical', '危急提示');
        $print[] = $this->fe('urine_routine', 'ld.remark', '备注');

        return ['time'=> $this->model->urine_routine['time'], 'print' => $this->getPrintStr('', $print)];
    }

    public function biochemicalExamination()
    {
        if (!$this->model->biochemical_examination) {
            return '';
        }

        $print = [
//            $this->fe('biochemical_examination', 'time'),
            '生化全项'.$this->ft('auxiliary.site', $this->fe('biochemical_examination', 'site'), '(', ')'),

            $this->fe('biochemical_examination', 'alt.result_n', '丙氨酸氨基转化酶', 'U/L'),
            $this->fe('biochemical_examination', 'alt.allergy', '药敏结果'),
            $this->fe('biochemical_examination', 'alt.critical', '危急提示'),
            $this->fe('biochemical_examination', 'alt.remark', '备注'),

            $this->fe('biochemical_examination', 'tp.result_n', '总蛋白(TP)', 'g/L'),
            $this->fe('biochemical_examination', 'tp.allergy', '药敏结果'),
            $this->fe('biochemical_examination', 'tp.critical', '危急提示'),
            $this->fe('biochemical_examination', 'tp.remark', '备注'),

            $this->fe('biochemical_examination', 'alb.result_n', '白蛋白', 'g/L'),
            $this->fe('biochemical_examination', 'alb.allergy', '药敏结果'),
            $this->fe('biochemical_examination', 'alb.critical', '危急提示'),
            $this->fe('biochemical_examination', 'alb.remark', '备注'),

            $this->fe('biochemical_examination', 'a/g.result_n', '白蛋白球蛋白比'),
            $this->fe('biochemical_examination', 'a/g.allergy', '药敏结果'),
            $this->fe('biochemical_examination', 'a/g.critical', '危急提示'),
            $this->fe('biochemical_examination', 'a/g.remark', '备注'),

            $this->fe('biochemical_examination', 'tbil.result_n', '总胆红素', 'μmol/L'),
            $this->fe('biochemical_examination', 'tbil.allergy', '药敏结果'),
            $this->fe('biochemical_examination', 'tbil.critical', '危急提示'),
            $this->fe('biochemical_examination', 'tbil.remark', '备注'),

            $this->fe('biochemical_examination', 'dbil.result_n', '直接胆红素', 'μmol/L'),
            $this->fe('biochemical_examination', 'dbil.allergy', '药敏结果'),
            $this->fe('biochemical_examination', 'dbil.critical', '危急提示'),
            $this->fe('biochemical_examination', 'dbil.remark', '备注'),

            $this->fe('biochemical_examination', 'ggt.result_n', '谷氨酰转肽酶', 'U/L'),
            $this->fe('biochemical_examination', 'ggt.allergy', '药敏结果'),
            $this->fe('biochemical_examination', 'ggt.critical', '危急提示'),
            $this->fe('biochemical_examination', 'ggt.remark', '备注'),

            $this->fe('biochemical_examination', 'alp.result_n', '碱性磷酸酶(ALP)', 'U/L'),
            $this->fe('biochemical_examination', 'alp.allergy', '药敏结果'),
            $this->fe('biochemical_examination', 'alp.critical', '危急提示'),
            $this->fe('biochemical_examination', 'alp.remark', '备注'),

            $this->fe('biochemical_examination', 'ast.result_n', '天门冬氨酸氨基转移酶(AST)	', 'U/L'),
            $this->fe('biochemical_examination', 'ast.allergy', '药敏结果'),
            $this->fe('biochemical_examination', 'ast.critical', '危急提示'),
            $this->fe('biochemical_examination', 'ast.remark', '备注'),

            $this->fe('biochemical_examination', 'tba.result_n', '总胆汁酸(TBA)', 'μmol/L'),
            $this->fe('biochemical_examination', 'tba.allergy', '药敏结果'),
            $this->fe('biochemical_examination', 'tba.critical', '危急提示'),
            $this->fe('biochemical_examination', 'tba.remark', '备注'),

            $this->fe('biochemical_examination', 'che.result_n', '胆碱酯酶(ChE)', 'KU/L'),
            $this->fe('biochemical_examination', 'che.allergy', '药敏结果'),
            $this->fe('biochemical_examination', 'che.critical', '危急提示'),
            $this->fe('biochemical_examination', 'che.remark', '备注'),

            $this->fe('biochemical_examination', 'k.result_n', '钾', 'mmol/L'),
            $this->fe('biochemical_examination', 'k.allergy', '药敏结果'),
            $this->fe('biochemical_examination', 'k.critical', '危急提示'),
            $this->fe('biochemical_examination', 'k.remark', '备注'),

            $this->fe('biochemical_examination', 'na.result_n', '钠', 'mmol/L'),
            $this->fe('biochemical_examination', 'na.allergy', '药敏结果'),
            $this->fe('biochemical_examination', 'na.critical', '危急提示'),
            $this->fe('biochemical_examination', 'na.remark', '备注'),

            $this->fe('biochemical_examination', 'cl.result_n', '氯', 'mmol/L'),
            $this->fe('biochemical_examination', 'cl.allergy', '药敏结果'),
            $this->fe('biochemical_examination', 'cl.critical', '危急提示'),
            $this->fe('biochemical_examination', 'cl.remark', '备注'),

            $this->fe('biochemical_examination', 'tco2.result_n', '总二氧化碳', 'mmol/L'),
            $this->fe('biochemical_examination', 'tco2.allergy', '药敏结果'),
            $this->fe('biochemical_examination', 'tco2.critical', '危急提示'),
            $this->fe('biochemical_examination', 'tco2.remark', '备注'),

            $this->fe('biochemical_examination', 'ca.result_n', '钙', 'mmol/L'),
            $this->fe('biochemical_examination', 'ca.allergy', '药敏结果'),
            $this->fe('biochemical_examination', 'ca.critical', '危急提示'),
            $this->fe('biochemical_examination', 'ca.remark', '备注'),

            $this->fe('biochemical_examination', 'cr(e).result_n', '肌酐(酶法)', 'μmol/L'),
            $this->fe('biochemical_examination', 'cr(e).allergy', '药敏结果'),
            $this->fe('biochemical_examination', 'cr(e).critical', '危急提示'),
            $this->fe('biochemical_examination', 'cr(e).remark', '备注'),

            $this->fe('biochemical_examination', 'urea.result_n', '尿素', 'mmol/L'),
            $this->fe('biochemical_examination', 'urea.allergy', '药敏结果'),
            $this->fe('biochemical_examination', 'urea.critical', '危急提示'),
            $this->fe('biochemical_examination', 'urea.remark', '备注'),

            $this->fe('biochemical_examination', 'glu.result_n', '葡萄糖', 'mmol/L'),
            $this->fe('biochemical_examination', 'glu.allergy', '药敏结果'),
            $this->fe('biochemical_examination', 'glu.critical', '危急提示'),
            $this->fe('biochemical_examination', 'glu.remark', '备注'),

            $this->fe('biochemical_examination', 'ua.result_n', '尿酸', 'umol/L'),
            $this->fe('biochemical_examination', 'ua.allergy', '药敏结果'),
            $this->fe('biochemical_examination', 'ua.critical', '危急提示'),
            $this->fe('biochemical_examination', 'ua.remark', '备注'),

            $this->fe('biochemical_examination', 'p.result_n', '无机磷', 'mmol/L'),
            $this->fe('biochemical_examination', 'p.allergy', '药敏结果'),
            $this->fe('biochemical_examination', 'p.critical', '危急提示'),
            $this->fe('biochemical_examination', 'p.remark', '备注'),

            $this->fe('biochemical_examination', 'tc.result_n', '总胆固醇', 'mmol/L'),
            $this->fe('biochemical_examination', 'tc.allergy', '药敏结果'),
            $this->fe('biochemical_examination', 'tc.critical', '危急提示'),
            $this->fe('biochemical_examination', 'tc.remark', '备注'),

            $this->fe('biochemical_examination', 'tg.result_n', '甘油三脂', 'mmol/L'),
            $this->fe('biochemical_examination', 'tg.allergy', '药敏结果'),
            $this->fe('biochemical_examination', 'tg.critical', '危急提示'),
            $this->fe('biochemical_examination', 'tg.remark', '备注'),

            $this->fe('biochemical_examination', 'hdl-c.result_n', '高密度脂蛋白胆固醇', 'mmol/L'),
            $this->fe('biochemical_examination', 'hdl-c.allergy', '药敏结果'),
            $this->fe('biochemical_examination', 'hdl-c.critical', '危急提示'),
            $this->fe('biochemical_examination', 'hdl-c.remark', '备注'),

            $this->fe('biochemical_examination', 'ldl-c.result_n', '低密度脂蛋白胆固醇', 'mmol/L'),
            $this->fe('biochemical_examination', 'ldl-c.allergy', '药敏结果'),
            $this->fe('biochemical_examination', 'ldl-c.critical', '危急提示'),
            $this->fe('biochemical_examination', 'ldl-c.remark', '备注'),

            $this->fe('biochemical_examination', 'apoa1.result_n', '载脂蛋白A1', 'g/L'),
            $this->fe('biochemical_examination', 'apoa1.allergy', '药敏结果'),
            $this->fe('biochemical_examination', 'apoa1.critical', '危急提示'),
            $this->fe('biochemical_examination', 'apoa1.remark', '备注'),

            $this->fe('biochemical_examination', 'apob.result_n', '载脂蛋白B', 'g/L'),
            $this->fe('biochemical_examination', 'apob.allergy', '药敏结果'),
            $this->fe('biochemical_examination', 'apob.critical', '危急提示'),
            $this->fe('biochemical_examination', 'apob.remark', '备注'),

            $this->fe('biochemical_examination', 'lp(a).result_n', '脂蛋白(a)', 'mg/L'),
            $this->fe('biochemical_examination', 'lp(a).allergy', '药敏结果'),
            $this->fe('biochemical_examination', 'lp(a).critical', '危急提示'),
            $this->fe('biochemical_examination', 'lp(a).remark', '备注'),

            $this->fe('biochemical_examination', 'hscrp.result_n', '超敏C反应蛋白', 'mg/L'),
            $this->fe('biochemical_examination', 'hscrp.allergy', '药敏结果'),
            $this->fe('biochemical_examination', 'hscrp.critical', '危急提示'),
            $this->fe('biochemical_examination', 'hscrp.remark', '备注'),

            $this->fe('biochemical_examination', 'ffa.result_n', '游离脂肪酸', 'umol/L'),
            $this->fe('biochemical_examination', 'ffa.allergy', '药敏结果'),
            $this->fe('biochemical_examination', 'ffa.critical', '危急提示'),
            $this->fe('biochemical_examination', 'ffa.remark', '备注'),

            $this->fe('biochemical_examination', 'pa.result_n', '前白蛋白', 'mg/L'),
            $this->fe('biochemical_examination', 'pa.allergy', '药敏结果'),
            $this->fe('biochemical_examination', 'pa.critical', '危急提示'),
            $this->fe('biochemical_examination', 'pa.remark', '备注'),
        ];

        if (!$this->scene->isWestern()) {
            $print[] = $this->fe('bt_paba', 'amy.result_n', '淀粉酶', 'U/L');
            $print[] = $this->fe('bt_paba', 'amy.allergy', '药敏结果');
            $print[] = $this->fe('bt_paba', 'amy.critical', '危急提示');
            $print[] = $this->fe('bt_paba', 'amy.remark', '备注');

            $print[] = $this->fe('bt_paba', 'lip.result_n', '脂肪酶', 'U/L');
            $print[] = $this->fe('bt_paba', 'lip.allergy', '药敏结果');
            $print[] = $this->fe('bt_paba', 'lip.critical', '危急提示');
            $print[] = $this->fe('bt_paba', 'lip.remark', '备注');

            $print[] = $this->fe('biochemical_examination', 'ck.result_n', '肌酸激酶', 'U/L');
            $print[] = $this->fe('biochemical_examination', 'ck.allergy', '药敏结果');
            $print[] = $this->fe('biochemical_examination', 'ck.critical', '危急提示');
            $print[] = $this->fe('biochemical_examination', 'ck.remark', '备注');

            $print[] = $this->fe('biochemical_examination', 'ckmb.result_n', '肌酸酶同功酶', 'U/L');
            $print[] = $this->fe('biochemical_examination', 'ckmb.allergy', '药敏结果');
            $print[] = $this->fe('biochemical_examination', 'ckmb.critical', '危急提示');
            $print[] = $this->fe('biochemical_examination', 'ckmb.remark', '备注');
        }

        $print[] = $this->fe('biochemical_examination', 'ld.result_n', app('scene')->isWestern() ? '乳酸脱氢酶(LD)' : '乳酸脱氢酶', 'U/L');
        $print[] = $this->fe('biochemical_examination', 'ld.allergy', '药敏结果');
        $print[] = $this->fe('biochemical_examination', 'ld.critical', '危急提示');
        $print[] = $this->fe('biochemical_examination', 'ld.remark', '备注');

        return ['time'=> $this->model->biochemical_examination['time'], 'print' => $this->getPrintStr('', $print)];
    }

    public function liverFunction()
    {
        if (!$this->model->liver_function) {
            return '';
        }

        $print = [
//            $this->fe('liver_function', 'time'),
            '肝功'.$this->ft('auxiliary.site', $this->fe('liver_function', 'site'), '(', ')'),

            $this->fe('liver_function', 'alt.result_n', '丙氨酸氨基转化酶', 'U/L'),
            $this->fe('liver_function', 'alt.allergy', '药敏结果'),
            $this->fe('liver_function', 'alt.critical', '危急提示'),
            $this->fe('liver_function', 'alt.remark', '备注'),

            $this->fe('liver_function', 'alb.result_n', '白蛋白', 'g/L'),
            $this->fe('liver_function', 'alb.allergy', '药敏结果'),
            $this->fe('liver_function', 'alb.critical', '危急提示'),
            $this->fe('liver_function', 'alb.remark', '备注'),

            $this->fe('liver_function', 'tbil.result_n', '总胆红素', 'μmol/L'),
            $this->fe('liver_function', 'tbil.allergy', '药敏结果'),
            $this->fe('liver_function', 'tbil.critical', '危急提示'),
            $this->fe('liver_function', 'tbil.remark', '备注'),

            $this->fe('liver_function', 'dbil.result_n', '直接胆红素', 'μmol/L'),
            $this->fe('liver_function', 'dbil.allergy', '药敏结果'),
            $this->fe('liver_function', 'dbil.critical', '危急提示'),
            $this->fe('liver_function', 'dbil.remark', '备注'),

            $this->fe('liver_function', 'alp.result_n', '碱性磷酸酶', 'U/L'),
            $this->fe('liver_function', 'alp.allergy', '药敏结果'),
            $this->fe('liver_function', 'alp.critical', '危急提示'),
            $this->fe('liver_function', 'alp.remark', '备注'),

            $this->fe('liver_function', 'ast.result_n', '天门冬氨酸氨基转移酶', 'U/L'),
            $this->fe('liver_function', 'ast.allergy', '药敏结果'),
            $this->fe('liver_function', 'ast.critical', '危急提示'),
            $this->fe('liver_function', 'ast.remark', '备注'),

            $this->fe('liver_function', 'ld.result_n', '乳酸脱氢酶(LD)', 'U/L'),
            $this->fe('liver_function', 'ld.allergy', '药敏结果'),
            $this->fe('liver_function', 'ld.critical', '危急提示'),
            $this->fe('liver_function', 'ld.remark', '备注'),
        ];

        return ['time'=> $this->model->liver_function['time'], 'print' => $this->getPrintStr('', $print)];
    }

    public function kidney()
    {
        if (!$this->model->kidney) {
            return '';
        }

        $print = [

            $this->fe('kidney', 'k.result_n', '钾', 'mmol/L'),
            $this->fe('kidney', 'k.allergy', '药敏结果'),
            $this->fe('kidney', 'k.critical', '危急提示'),
            $this->fe('kidney', 'k.remark', '备注'),

            $this->fe('kidney', 'na.result_n', '钠', 'mmol/L'),
            $this->fe('kidney', 'na.allergy', '药敏结果'),
            $this->fe('kidney', 'na.critical', '危急提示'),
            $this->fe('kidney', 'na.remark', '备注'),

            $this->fe('kidney', 'cl.result_n', '氯', 'mmol/L'),
            $this->fe('kidney', 'cl.allergy', '药敏结果'),
            $this->fe('kidney', 'cl.critical', '危急提示'),
            $this->fe('kidney', 'cl.remark', '备注'),

            $this->fe('kidney', 'tco2.result_n', '总二氧化碳', 'mmol/L'),
            $this->fe('kidney', 'tco2.allergy', '药敏结果'),
            $this->fe('kidney', 'tco2.critical', '危急提示'),
            $this->fe('kidney', 'tco2.remark', '备注'),

            $this->fe('kidney', 'ca.result_n', '钙', 'mmol/L'),
            $this->fe('kidney', 'ca.allergy', '药敏结果'),
            $this->fe('kidney', 'ca.critical', '危急提示'),
            $this->fe('kidney', 'ca.remark', '备注'),

            $this->fe('kidney', 'cr(e).result_n', '肌酐(酶法)', 'μmol/L'),
            $this->fe('kidney', 'cr(e).allergy', '药敏结果'),
            $this->fe('kidney', 'cr(e).critical', '危急提示'),
            $this->fe('kidney', 'cr(e).remark', '备注'),

            $this->fe('kidney', 'urea.result_n', '尿素', 'mmol/L'),
            $this->fe('kidney', 'urea.allergy', '药敏结果'),
            $this->fe('kidney', 'urea.critical', '危急提示'),
            $this->fe('kidney', 'urea.remark', '备注'),

            $this->fe('kidney', 'glu.result_n', '葡萄糖', 'mmol/L'),
            $this->fe('kidney', 'glu.allergy', '药敏结果'),
            $this->fe('kidney', 'glu.critical', '危急提示'),
            $this->fe('kidney', 'glu.remark', '备注'),

            $this->fe('kidney', 'ua.result_n', '尿酸', 'umol/L'),
            $this->fe('kidney', 'ua.allergy', '药敏结果'),
            $this->fe('kidney', 'ua.critical', '危急提示'),
            $this->fe('kidney', 'ua.remark', '备注'),

            $this->fe('kidney', 'p.result_n', '无机磷', 'mmol/L'),
            $this->fe('kidney', 'p.allergy', '药敏结果'),
            $this->fe('kidney', 'p.critical', '危急提示'),
            $this->fe('kidney', 'p.remark', '备注'),

            $this->fe('kidney', 'egfr.result_n', '估测肾小球滤过率', 'g/d'),
            $this->fe('kidney', 'egfr.allergy', '药敏结果'),
            $this->fe('kidney', 'egfr.critical', '危急提示'),
            $this->fe('kidney', 'egfr.remark', '备注'),
        ];

        if ($this->scene->isWestern()) {
            array_unshift($print, '肾全检查'.$this->ft('auxiliary.site', $this->fe('kidney', 'site'), '(', ')'));
        } else {
            array_unshift($print, '估测肾小球滤过率'.$this->ft('auxiliary.site', $this->fe('kidney', 'site'), '(', ')'));
        }

        return ['time'=> $this->model->kidney['time'], 'print' => $this->getPrintStr('', $print)];
    }

    public function electrolyte()
    {
        if (!$this->model->electrolyte) {
            return '';
        }

        $print = [
//            $this->fe('electrolyte', 'time'),
            '电解质检查'.$this->ft('auxiliary.site', $this->fe('electrolyte', 'site'), '(', ')'),

            $this->fe('electrolyte', 'k.result_n', '钾', 'mmol/L'),
            $this->fe('electrolyte', 'k.allergy', '药敏结果'),
            $this->fe('electrolyte', 'k.critical', '危急提示'),
            $this->fe('electrolyte', 'k.remark', '备注'),

            $this->fe('electrolyte', 'na.result_n', '钠', 'mmol/L'),
            $this->fe('electrolyte', 'na.allergy', '药敏结果'),
            $this->fe('electrolyte', 'na.critical', '危急提示'),
            $this->fe('electrolyte', 'na.remark', '备注'),

            $this->fe('electrolyte', 'cl.result_n', '氯', 'mmol/L'),
            $this->fe('electrolyte', 'cl.allergy', '药敏结果'),
            $this->fe('electrolyte', 'cl.critical', '危急提示'),
            $this->fe('electrolyte', 'cl.remark', '备注'),

            $this->fe('electrolyte', 'tco2.result_n', '总二氧化碳', 'mmol/L'),
            $this->fe('electrolyte', 'tco2.allergy', '药敏结果'),
            $this->fe('electrolyte', 'tco2.critical', '危急提示'),
            $this->fe('electrolyte', 'tco2.remark', '备注'),

            $this->fe('electrolyte', 'ca.result_n', '钙', 'mmol/L'),
            $this->fe('electrolyte', 'ca.allergy', '药敏结果'),
            $this->fe('electrolyte', 'ca.critical', '危急提示'),
            $this->fe('electrolyte', 'ca.remark', '备注'),
        ];

        return ['time'=> $this->model->electrolyte['time'], 'print' => $this->getPrintStr('', $print)];
    }

    public function tgChohdlldl()
    {
        if (!$this->model->tg_chohdlldl) {
            return '';
        }

        $print = [
//            $this->fe('tg_chohdlldl', 'time'),
            '血脂四项'.$this->ft('auxiliary.site', $this->fe('tg_chohdlldl', 'site'), '(', ')'),

            $this->fe('tg_chohdlldl', 'tc.result_n', '总胆固醇', 'mmol/L'),
            $this->fe('tg_chohdlldl', 'tc.allergy', '药敏结果'),
            $this->fe('tg_chohdlldl', 'tc.critical', '危急提示'),
            $this->fe('tg_chohdlldl', 'tc.remark', '备注'),

            $this->fe('tg_chohdlldl', 'tg.result_n', '甘油三脂', 'mmol/L'),
            $this->fe('tg_chohdlldl', 'tg.allergy', '药敏结果'),
            $this->fe('tg_chohdlldl', 'tg.critical', '危急提示'),
            $this->fe('tg_chohdlldl', 'tg.remark', '备注'),

            $this->fe('tg_chohdlldl', 'hdl-c.result_n', '高密度脂蛋白胆固醇', 'mmol/L'),
            $this->fe('tg_chohdlldl', 'hdl-c.allergy', '药敏结果'),
            $this->fe('tg_chohdlldl', 'hdl-c.critical', '危急提示'),
            $this->fe('tg_chohdlldl', 'hdl-c.remark', '备注'),

            $this->fe('tg_chohdlldl', 'ldl-c.result_n', '低密度脂蛋白胆固醇', 'mmol/L'),
            $this->fe('tg_chohdlldl', 'ldl-c.allergy', '药敏结果'),
            $this->fe('tg_chohdlldl', 'ldl-c.critical', '危急提示'),
            $this->fe('tg_chohdlldl', 'ldl-c.remark', '备注'),
        ];

        return ['time'=> $this->model->tg_chohdlldl['time'], 'print' => $this->getPrintStr('', $print)];
    }

    public function btPaba()
    {
        if (!$this->model->bt_paba || !$this->scene->isWestern()) {
            return '';
        }

        $print = [
//            $this->fe('bt_paba', 'time'),
            '胰功'.$this->ft('auxiliary.site', $this->fe('bt_paba', 'site'), '(', ')'),

            $this->fe('bt_paba', 'amy.result_n', '淀粉酶', 'U/L'),
            $this->fe('bt_paba', 'amy.allergy', '药敏结果'),
            $this->fe('bt_paba', 'amy.critical', '危急提示'),
            $this->fe('bt_paba', 'amy.remark', '备注'),

            $this->fe('bt_paba', 'lip.result_n', '脂肪酶', 'U/L'),
            $this->fe('bt_paba', 'lip.allergy', '药敏结果'),
            $this->fe('bt_paba', 'lip.critical', '危急提示'),
            $this->fe('bt_paba', 'lip.remark', '备注'),
        ];

        return ['time'=> $this->model->bt_paba['time'], 'print' => $this->getPrintStr('', $print)];
    }

    public function thyroidFunctionOne()
    {
        if (!$this->model->thyroid_function_one || !$this->scene->isWestern()) {
            return '';
        }

        $print = [
//            $this->fe('thyroid_function_one', 'time'),
            '甲功1'.$this->ft('auxiliary.site', $this->fe('thyroid_function_one', 'site'), '(', ')'),

            $this->fe('thyroid_function_one', 'ft3.result_n', '游离三碘甲状腺原氨酸	', 'pg/ml'),
            $this->fe('thyroid_function_one', 'ft3.allergy', '药敏结果'),
            $this->fe('thyroid_function_one', 'ft3.critical', '危急提示'),
            $this->fe('thyroid_function_one', 'ft3.remark', '备注'),

            $this->fe('thyroid_function_one', 'ft4.result_n', '游离甲状腺素', 'ng/dl'),
            $this->fe('thyroid_function_one', 'ft4.allergy', '药敏结果'),
            $this->fe('thyroid_function_one', 'ft4.critical', '危急提示'),
            $this->fe('thyroid_function_one', 'ft4.remark', '备注'),

            $this->fe('thyroid_function_one', 'tsh3.result_n', '促甲状腺素', 'ng/ml'),
            $this->fe('thyroid_function_one', 'tsh3.allergy', '药敏结果'),
            $this->fe('thyroid_function_one', 'tsh3.critical', '危急提示'),
            $this->fe('thyroid_function_one', 'tsh3.remark', '备注'),
        ];

        return ['time'=> $this->model->thyroid_function_one['time'], 'print' => $this->getPrintStr('', $print)];
    }

    public function thyroidFunctionTwo()
    {
        if (!$this->scene->isWestern()) {
            return $this->thyroidFunction();
        }

        if (!$this->model->thyroid_function_two) {
            return '';
        }

        $print = [
//            $this->fe('thyroid_function_two', 'time'),
            '甲功2'.$this->ft('auxiliary.site', $this->fe('thyroid_function_two', 'site'), '(', ')'),

            $this->fe('thyroid_function_two', 'ft3.result_n', '游离三碘甲状腺原氨酸	', 'pg/ml'),
            $this->fe('thyroid_function_two', 'ft3.allergy', '药敏结果'),
            $this->fe('thyroid_function_two', 'ft3.critical', '危急提示'),
            $this->fe('thyroid_function_two', 'ft3.remark', '备注'),

            $this->fe('thyroid_function_two', 'ft4.result_n', '游离甲状腺素', 'ng/dl'),
            $this->fe('thyroid_function_two', 'ft4.allergy', '药敏结果'),
            $this->fe('thyroid_function_two', 'ft4.critical', '危急提示'),
            $this->fe('thyroid_function_two', 'ft4.remark', '备注'),

            $this->fe('thyroid_function_two', 't3.result_n', '三碘甲状腺原氨酸', 'ng/ml'),
            $this->fe('thyroid_function_two', 't3.allergy', '药敏结果'),
            $this->fe('thyroid_function_two', 't3.critical', '危急提示'),
            $this->fe('thyroid_function_two', 't3.remark', '备注'),

            $this->fe('thyroid_function_two', 't4.result_n', '甲状腺素', 'ug/dL'),
            $this->fe('thyroid_function_two', 't4.allergy', '药敏结果'),
            $this->fe('thyroid_function_two', 't4.critical', '危急提示'),
            $this->fe('thyroid_function_two', 't4.remark', '备注'),

            $this->fe('thyroid_function_two', 'tsh3.result_n', '促甲状腺素', 'ng/ml'),
            $this->fe('thyroid_function_two', 'tsh3.allergy', '药敏结果'),
            $this->fe('thyroid_function_two', 'tsh3.critical', '危急提示'),
            $this->fe('thyroid_function_two', 'tsh3.remark', '备注'),
        ];

        return ['time'=> $this->model->thyroid_function_two['time'], 'print' => $this->getPrintStr('', $print)];
    }

    public function thyroidFunctionThree()
    {
        if (!$this->model->thyroid_function_three || !$this->scene->isWestern()) {
            return '';
        }

        $print = [
//            $this->fe('thyroid_function_three', 'time'),
            '甲功3'.$this->ft('auxiliary.site', $this->fe('thyroid_function_three', 'site'), '(', ')'),

            $this->fe('thyroid_function_three', 'a-tg.result_n', '甲状腺球蛋白抗体	', 'IU/ml'),
            $this->fe('thyroid_function_three', 'a-tg.allergy', '药敏结果'),
            $this->fe('thyroid_function_three', 'a-tg.critical', '危急提示'),
            $this->fe('thyroid_function_three', 'a-tg.remark', '备注'),

            $this->fe('thyroid_function_three', 'a-tpo.result_n', '甲状腺过氧化物酶抗体', 'IU/ml'),
            $this->fe('thyroid_function_three', 'a-tpo.allergy', '药敏结果'),
            $this->fe('thyroid_function_three', 'a-tpo.critical', '危急提示'),
            $this->fe('thyroid_function_three', 'a-tpo.remark', '备注'),
        ];

        return ['time'=> $this->model->thyroid_function_three['time'], 'print' => $this->getPrintStr('', $print)];
    }

    public function thyroidFunction()
    {
        if (!$this->model->thyroid_function_three && !$this->model->thyroid_function_two) {
            return '';
        }

        $print = [
            //            $this->fe('thyroid_function_three', 'time'),
            '甲功'.$this->ft('auxiliary.site', $this->fe('thyroid_function_two', 'site'), '(', ')'),

            $this->fe('thyroid_function_two', 'ft3.result_n', '游离三碘甲状腺原氨酸	', 'pg/ml'),
            $this->fe('thyroid_function_two', 'ft3.allergy', '药敏结果'),
            $this->fe('thyroid_function_two', 'ft3.critical', '危急提示'),
            $this->fe('thyroid_function_two', 'ft3.remark', '备注'),

            $this->fe('thyroid_function_two', 'ft4.result_n', '游离甲状腺素', 'ng/dl'),
            $this->fe('thyroid_function_two', 'ft4.allergy', '药敏结果'),
            $this->fe('thyroid_function_two', 'ft4.critical', '危急提示'),
            $this->fe('thyroid_function_two', 'ft4.remark', '备注'),

            $this->fe('thyroid_function_two', 't3.result_n', '三碘甲状腺原氨酸', 'ng/ml'),
            $this->fe('thyroid_function_two', 't3.allergy', '药敏结果'),
            $this->fe('thyroid_function_two', 't3.critical', '危急提示'),
            $this->fe('thyroid_function_two', 't3.remark', '备注'),

            $this->fe('thyroid_function_two', 't4.result_n', '甲状腺素', 'ug/dL'),
            $this->fe('thyroid_function_two', 't4.allergy', '药敏结果'),
            $this->fe('thyroid_function_two', 't4.critical', '危急提示'),
            $this->fe('thyroid_function_two', 't4.remark', '备注'),

            $this->fe('thyroid_function_two', 'tsh3.result_n', '促甲状腺素', 'ng/ml'),
            $this->fe('thyroid_function_two', 'tsh3.allergy', '药敏结果'),
            $this->fe('thyroid_function_two', 'tsh3.critical', '危急提示'),
            $this->fe('thyroid_function_two', 'tsh3.remark', '备注'),

            $this->fe('thyroid_function_three', 'a-tg.result_n', '甲状腺球蛋白抗体	', 'IU/ml'),
            $this->fe('thyroid_function_three', 'a-tg.allergy', '药敏结果'),
            $this->fe('thyroid_function_three', 'a-tg.critical', '危急提示'),
            $this->fe('thyroid_function_three', 'a-tg.remark', '备注'),

            $this->fe('thyroid_function_three', 'a-tpo.result_n', '甲状腺过氧化物酶抗体', 'IU/ml'),
            $this->fe('thyroid_function_three', 'a-tpo.allergy', '药敏结果'),
            $this->fe('thyroid_function_three', 'a-tpo.critical', '危急提示'),
            $this->fe('thyroid_function_three', 'a-tpo.remark', '备注'),

            $this->fe('thyroid_function_three', 'atshr.result_n', '促甲状腺素受体抗体', 'IU/L'),
            $this->fe('thyroid_function_three', 'atshr.allergy', '药敏结果'),
            $this->fe('thyroid_function_three', 'atshr.critical', '危急提示'),
            $this->fe('thyroid_function_three', 'atshr.remark', '备注'),
        ];

        return ['time'=> $this->model->thyroid_function_two['time'], 'print' => $this->getPrintStr('', $print)];
    }

    public function plasmaActh()
    {
        if (!$this->model->plasma_acth) {
            return '';
        }

        $print = [
//            $this->fe('plasma_acth', 'time'),
            '血浆ACTH'.$this->ft('auxiliary.site', $this->fe('plasma_acth', 'site'), '(', ')'),

            $this->fe('plasma_acth', 'acth(0am).result_n', '促肾上腺皮质激素(0AM)	', 'pg/ml'),
            $this->fe('plasma_acth', 'acth(0am).allergy', '药敏结果'),
            $this->fe('plasma_acth', 'acth(0am).critical', '危急提示'),
            $this->fe('plasma_acth', 'acth(0am).remark', '备注'),

            $this->fe('plasma_acth', 'acth(8am).result_n', '促肾上腺皮质激素(8AM)', 'pg/ml'),
            $this->fe('plasma_acth', 'acth(8am).allergy', '药敏结果'),
            $this->fe('plasma_acth', 'acth(8am).critical', '危急提示'),
            $this->fe('plasma_acth', 'acth(8am).remark', '备注'),

            $this->fe('plasma_acth', 'acth(4pm).result_n', '促肾上腺皮质激素(4PM)', 'pg/ml'),
            $this->fe('plasma_acth', 'acth(4pm).allergy', '药敏结果'),
            $this->fe('plasma_acth', 'acth(4pm).critical', '危急提示'),
            $this->fe('plasma_acth', 'acth(4pm).remark', '备注'),
        ];

        return ['time'=> $this->model->plasma_acth['time'], 'print' => $this->getPrintStr('', $print)];
    }

    public function bloodCortisol()
    {
        if (!$this->model->blood_cortisol) {
            return '';
        }

        $print = [
//            $this->fe('blood_cortisol', 'time'),
            '血总皮质醇'.$this->ft('auxiliary.site', $this->fe('blood_cortisol', 'site'), '(', ')'),

            $this->fe('blood_cortisol', 'f(0am).result_n', '血总皮质醇(0AM)', 'ug/dl'),
            $this->fe('blood_cortisol', 'f(0am).allergy', '药敏结果'),
            $this->fe('blood_cortisol', 'f(0am).critical', '危急提示'),
            $this->fe('blood_cortisol', 'f(0am).remark', '备注'),

            $this->fe('blood_cortisol', 'f(8am).result_n', '血总皮质醇(8AM)', 'ug/dl'),
            $this->fe('blood_cortisol', 'f(8am).allergy', '药敏结果'),
            $this->fe('blood_cortisol', 'f(8am).critical', '危急提示'),
            $this->fe('blood_cortisol', 'f(8am).remark', '备注'),

            $this->fe('blood_cortisol', 'f(4pm).result_n', '血总皮质醇(4PM)', 'ug/dl'),
            $this->fe('blood_cortisol', 'f(4pm).allergy', '药敏结果'),
            $this->fe('blood_cortisol', 'f(4pm).critical', '危急提示'),
            $this->fe('blood_cortisol', 'f(4pm).remark', '备注'),

            $this->fe('blood_cortisol', 'f.result_n', '血总皮质醇(过夜小剂量后)', 'ug/dl'),
            $this->fe('blood_cortisol', 'f.allergy', '药敏结果'),
            $this->fe('blood_cortisol', 'f.critical', '危急提示'),
            $this->fe('blood_cortisol', 'f.remark', '备注'),
        ];

        return ['time'=> $this->model->blood_cortisol['time'], 'print' => $this->getPrintStr('', $print)];
    }

    public function endocrineExamination()
    {
        if (!$this->model->endocrine_examination) {
            return '';
        }

        $print = [

            $this->fe('endocrine_examination', 'lh.result_n', '促黄体生成素', 'IU/L'),
            $this->fe('endocrine_examination', 'lh.allergy', '药敏结果'),
            $this->fe('endocrine_examination', 'lh.critical', '危急提示'),
            $this->fe('endocrine_examination', 'lh.remark', '备注'),

            $this->fe('endocrine_examination', 'fsh.result_n', '促卵泡成熟激素', 'IU/L'),
            $this->fe('endocrine_examination', 'fsh.allergy', '药敏结果'),
            $this->fe('endocrine_examination', 'fsh.critical', '危急提示'),
            $this->fe('endocrine_examination', 'fsh.remark', '备注'),

            $this->fe('endocrine_examination', 'e2.result_n', '雌二醇', 'ug/ml'),
            $this->fe('endocrine_examination', 'e2.allergy', '药敏结果'),
            $this->fe('endocrine_examination', 'e2.critical', '危急提示'),
            $this->fe('endocrine_examination', 'e2.remark', '备注'),

            $this->fe('endocrine_examination', 'p.result_n', '孕酮', 'ng/ml'),
            $this->fe('endocrine_examination', 'p.allergy', '药敏结果'),
            $this->fe('endocrine_examination', 'p.critical', '危急提示'),
            $this->fe('endocrine_examination', 'p.remark', '备注'),

            $this->fe('endocrine_examination', 't.result_n', '睾酮', 'ng/ml'),
            $this->fe('endocrine_examination', 't.allergy', '药敏结果'),
            $this->fe('endocrine_examination', 't.critical', '危急提示'),
            $this->fe('endocrine_examination', 't.remark', '备注'),

            $this->fe('endocrine_examination', 'prl.result_n', '泌乳素', 'ng/ml'),
            $this->fe('endocrine_examination', 'prl.allergy', '药敏结果'),
            $this->fe('endocrine_examination', 'prl.critical', '危急提示'),
            $this->fe('endocrine_examination', 'prl.remark', '备注'),
        ];

        if ($this->scene->isWestern()) {
            array_unshift($print, '内分泌六项'.$this->ft('auxiliary.site', $this->fe('endocrine_examination', 'site'), '(', ')'));
        } else {
            array_unshift($print, '女性激素'.$this->ft('auxiliary.site', $this->fe('endocrine_examination', 'site'), '(', ')'));
        }

        return ['time'=> $this->model->endocrine_examination['time'], 'print' => $this->getPrintStr('', $print)];
    }

    public function growthHormone()
    {
        if (!$this->model->growth_hormone) {
            return '';
        }

        $print = [
//            $this->fe('growth_hormone', 'time'),
            '生长激素'.$this->ft('auxiliary.site', $this->fe('growth_hormone', 'site'), '(', ')'),

            $this->fe('growth_hormone', 'gh.result_n', '生长激素', 'ng/ml'),
            $this->fe('growth_hormone', 'gh.allergy', '药敏结果'),
            $this->fe('growth_hormone', 'gh.critical', '危急提示'),
            $this->fe('growth_hormone', 'gh.remark', '备注'),
        ];

        return ['time'=> $this->model->growth_hormone['time'], 'print' => $this->getPrintStr('', $print)];
    }

    public function insulinGrowthFactor()
    {
        if (!$this->model->insulin_growth_factor) {
            return '';
        }

        $print = [
//            $this->fe('insulin_growth_factor', 'time'),
            '胰岛素样生长因子'.$this->ft('auxiliary.site', $this->fe('insulin_growth_factor', 'site'), '(', ')'),

            $this->fe('insulin_growth_factor', 'igf1.result_n', '类胰岛素生长因子1', 'ng/ml'),
            $this->fe('insulin_growth_factor', 'igf1.allergy', '药敏结果'),
            $this->fe('insulin_growth_factor', 'igf1.critical', '危急提示'),
            $this->fe('insulin_growth_factor', 'igf1.remark', '备注'),
        ];

        return ['time'=> $this->model->insulin_growth_factor['time'], 'print' => $this->getPrintStr('', $print)];
    }

    public function bloodRoutine()
    {
        if (!$this->model->blood_routine) {
            return '';
        }

        $print = [
//            $this->fe('blood_routine', 'time'),
            '血常规'.$this->ft('auxiliary.site', $this->fe('blood_routine', 'site'), '(', ')'),

            $this->fe('blood_routine', 'wbc.result_n', '白细胞数目', '×10^9/L'),
            $this->fe('blood_routine', 'wbc.allergy', '药敏结果'),
            $this->fe('blood_routine', 'wbc.critical', '危急提示'),
            $this->fe('blood_routine', 'wbc.remark', '备注'),

            $this->fe('blood_routine', 'ly%.result_n', '淋巴细胞百分比', '%'),
            $this->fe('blood_routine', 'ly%.allergy', '药敏结果'),
            $this->fe('blood_routine', 'ly%.critical', '危急提示'),
            $this->fe('blood_routine', 'ly%.remark', '备注'),

            $this->fe('blood_routine', 'mono%.result_n', '单核细胞百分比', '%'),
            $this->fe('blood_routine', 'mono%.allergy', '药敏结果'),
            $this->fe('blood_routine', 'mono%.critical', '危急提示'),
            $this->fe('blood_routine', 'mono%.remark', '备注'),

            $this->fe('blood_routine', 'neut%.result_n', '中性粒细胞百分比', '%'),
            $this->fe('blood_routine', 'neut%.allergy', '药敏结果'),
            $this->fe('blood_routine', 'neut%.critical', '危急提示'),
            $this->fe('blood_routine', 'neut%.remark', '备注'),

            $this->fe('blood_routine', 'eos%.result_n', '嗜酸性粒细胞百分比', '%'),
            $this->fe('blood_routine', 'eos%.allergy', '药敏结果'),
            $this->fe('blood_routine', 'eos%.critical', '危急提示'),
            $this->fe('blood_routine', 'eos%.remark', '备注'),

            $this->fe('blood_routine', 'baso%.result_n', '嗜碱性粒细胞百分比', '%'),
            $this->fe('blood_routine', 'baso%.allergy', '药敏结果'),
            $this->fe('blood_routine', 'baso%.critical', '危急提示'),
            $this->fe('blood_routine', 'baso%.remark', '备注'),

            $this->fe('blood_routine', 'luc%.result_n', '未染色大细胞百分比', '×10^9/L'),
            $this->fe('blood_routine', 'luc%.allergy', '药敏结果'),
            $this->fe('blood_routine', 'luc%.critical', '危急提示'),
            $this->fe('blood_routine', 'luc%.remark', '备注'),

            $this->fe('blood_routine', 'ly#.result_n', '淋巴细胞绝对值', '×10^9/L'),
            $this->fe('blood_routine', 'ly#.allergy', '药敏结果'),
            $this->fe('blood_routine', 'ly#.critical', '危急提示'),
            $this->fe('blood_routine', 'ly#.remark', '备注'),

            $this->fe('blood_routine', 'mono#.result_n', '单核细胞绝对值', '×10^9/L'),
            $this->fe('blood_routine', 'mono#.allergy', '药敏结果'),
            $this->fe('blood_routine', 'mono#.critical', '危急提示'),
            $this->fe('blood_routine', 'mono#.remark', '备注'),

            $this->fe('blood_routine', 'neut#.result_n', '中性粒细胞绝对值', '×10^9/L'),
            $this->fe('blood_routine', 'neut#.allergy', '药敏结果'),
            $this->fe('blood_routine', 'neut#.critical', '危急提示'),
            $this->fe('blood_routine', 'neut#.remark', '备注'),

            $this->fe('blood_routine', 'eos#.result_n', '嗜酸性粒细胞绝对值', '×10^9/L'),
            $this->fe('blood_routine', 'eos#.allergy', '药敏结果'),
            $this->fe('blood_routine', 'eos#.critical', '危急提示'),
            $this->fe('blood_routine', 'eos#.remark', '备注'),

            $this->fe('blood_routine', 'baso#.result_n', '嗜碱性粒细胞绝对值', '×10^9/L'),
            $this->fe('blood_routine', 'baso#.allergy', '药敏结果'),
            $this->fe('blood_routine', 'baso#.critical', '危急提示'),
            $this->fe('blood_routine', 'baso#.remark', '备注'),

            $this->fe('blood_routine', 'rbc.result_n', '红细胞', '×10^12/L'),
            $this->fe('blood_routine', 'rbc.allergy', '药敏结果'),
            $this->fe('blood_routine', 'rbc.critical', '危急提示'),
            $this->fe('blood_routine', 'rbc.remark', '备注'),

            $this->fe('blood_routine', 'hgb.result_n', '血红蛋白', 'g/L'),
            $this->fe('blood_routine', 'hgb.allergy', '药敏结果'),
            $this->fe('blood_routine', 'hgb.critical', '危急提示'),
            $this->fe('blood_routine', 'hgb.remark', '备注'),

            $this->fe('blood_routine', 'hct.result_n', '红细胞压积', '%'),
            $this->fe('blood_routine', 'hct.allergy', '药敏结果'),
            $this->fe('blood_routine', 'hct.critical', '危急提示'),
            $this->fe('blood_routine', 'hct.remark', '备注'),

            $this->fe('blood_routine', 'mcv.result_n', '平均红细胞体积', 'fl'),
            $this->fe('blood_routine', 'mcv.allergy', '药敏结果'),
            $this->fe('blood_routine', 'mcv.critical', '危急提示'),
            $this->fe('blood_routine', 'mcv.remark', '备注'),

            $this->fe('blood_routine', 'mchc.result_n', '平均红细胞血红蛋白浓度', 'g/L'),
            $this->fe('blood_routine', 'mchc.allergy', '药敏结果'),
            $this->fe('blood_routine', 'mchc.critical', '危急提示'),
            $this->fe('blood_routine', 'mchc.remark', '备注'),

            $this->fe('blood_routine', 'mch.result_n', '平均红细胞血红蛋白', 'pg'),
            $this->fe('blood_routine', 'mch.allergy', '药敏结果'),
            $this->fe('blood_routine', 'mch.critical', '危急提示'),
            $this->fe('blood_routine', 'mch.remark', '备注'),

            $this->fe('blood_routine', 'chcm.result_n', '单个细胞血红蛋白含量', 'g/L'),
            $this->fe('blood_routine', 'chcm.allergy', '药敏结果'),
            $this->fe('blood_routine', 'chcm.critical', '危急提示'),
            $this->fe('blood_routine', 'chcm.remark', '备注'),

            $this->fe('blood_routine', 'ch.result_n', '单个细胞血红蛋白', 'pg'),
            $this->fe('blood_routine', 'ch.allergy', '药敏结果'),
            $this->fe('blood_routine', 'ch.critical', '危急提示'),
            $this->fe('blood_routine', 'ch.remark', '备注'),

            $this->fe('blood_routine', 'rdw.result_n', '红细胞体积分布宽度', '%'),
            $this->fe('blood_routine', 'rdw.allergy', '药敏结果'),
            $this->fe('blood_routine', 'rdw.critical', '危急提示'),
            $this->fe('blood_routine', 'rdw.remark', '备注'),

            $this->fe('blood_routine', 'hdw.result_n', '血红蛋白分布宽度', '%'),
            $this->fe('blood_routine', 'hdw.allergy', '药敏结果'),
            $this->fe('blood_routine', 'hdw.critical', '危急提示'),
            $this->fe('blood_routine', 'hdw.remark', '备注'),

            $this->fe('blood_routine', 'plt.result_n', '血小板', '×10^9/L'),
            $this->fe('blood_routine', 'plt.allergy', '药敏结果'),
            $this->fe('blood_routine', 'plt.critical', '危急提示'),
            $this->fe('blood_routine', 'plt.remark', '备注'),

            $this->fe('blood_routine', 'pct.result_n', '血小板压积', '%'),
            $this->fe('blood_routine', 'pct.allergy', '药敏结果'),
            $this->fe('blood_routine', 'pct.critical', '危急提示'),
            $this->fe('blood_routine', 'pct.remark', '备注'),

            $this->fe('blood_routine', 'pdw.result_n', '血小板压积分布宽度', '%'),
            $this->fe('blood_routine', 'pdw.allergy', '药敏结果'),
            $this->fe('blood_routine', 'pdw.critical', '危急提示'),
            $this->fe('blood_routine', 'pdw.remark', '备注'),

            $this->fe('blood_routine', 'mpv.result_n', '平均血小板体积', 'fl'),
            $this->fe('blood_routine', 'mpv.allergy', '药敏结果'),
            $this->fe('blood_routine', 'mpv.critical', '危急提示'),
            $this->fe('blood_routine', 'mpv.remark', '备注'),
        ];

        return ['time'=> $this->model->blood_routine['time'], 'print' => $this->getPrintStr('', $print)];
    }

    public function bloodGasAnalysis()
    {
        if (!$this->model->blood_gas_analysis) {
            return '';
        }

        $print = [
//            $this->fe('blood_gas_analysis', 'time'),
            '血气分析'.$this->ft('auxiliary.site', $this->fe('blood_gas_analysis', 'site'), '(', ')'),

            $this->fe('blood_gas_analysis', 'ph.result_n', $this->scene->isWestern() ? '酸碱度值' : 'PH值'),
            $this->fe('blood_gas_analysis', 'ph.allergy', '药敏结果'),
            $this->fe('blood_gas_analysis', 'ph.critical', '危急提示'),
            $this->fe('blood_gas_analysis', 'ph.remark', '备注'),

            $this->fe('blood_gas_analysis', 'pco2.result_n', '二氧化碳分压', 'mmHg'),
            $this->fe('blood_gas_analysis', 'pco2.allergy', '药敏结果'),
            $this->fe('blood_gas_analysis', 'pco2.critical', '危急提示'),
            $this->fe('blood_gas_analysis', 'pco2.remark', '备注'),

            $this->fe('blood_gas_analysis', 'po2.result_n', '氧分压值', 'mmHg'),
            $this->fe('blood_gas_analysis', 'po2.allergy', '药敏结果'),
            $this->fe('blood_gas_analysis', 'po2.critical', '危急提示'),
            $this->fe('blood_gas_analysis', 'po2.remark', '备注'),

            $this->fe('blood_gas_analysis', 'so2.result_n', '氧饱和度', '%'),
            $this->fe('blood_gas_analysis', 'so2.allergy', '药敏结果'),
            $this->fe('blood_gas_analysis', 'so2.critical', '危急提示'),
            $this->fe('blood_gas_analysis', 'so2.remark', '备注'),

            $this->fe('blood_gas_analysis', 'thb.result_n', '血红蛋白', 'g/dL'),
            $this->fe('blood_gas_analysis', 'thb.allergy', '药敏结果'),
            $this->fe('blood_gas_analysis', 'thb.critical', '危急提示'),
            $this->fe('blood_gas_analysis', 'thb.remark', '备注'),

            $this->fe('blood_gas_analysis', 'o2hb.result_n', '氧合血红蛋白', '%'),
            $this->fe('blood_gas_analysis', 'o2hb.allergy', '药敏结果'),
            $this->fe('blood_gas_analysis', 'o2hb.critical', '危急提示'),
            $this->fe('blood_gas_analysis', 'o2hb.remark', '备注'),

            $this->fe('blood_gas_analysis', 'cohb.result_n', '碳氧血红蛋白', '%'),
            $this->fe('blood_gas_analysis', 'cohb.allergy', '药敏结果'),
            $this->fe('blood_gas_analysis', 'cohb.critical', '危急提示'),
            $this->fe('blood_gas_analysis', 'cohb.remark', '备注'),

            $this->fe('blood_gas_analysis', 'hhb.result_n', '去氧血红蛋白', '%'),
            $this->fe('blood_gas_analysis', 'hhb.allergy', '药敏结果'),
            $this->fe('blood_gas_analysis', 'hhb.critical', '危急提示'),
            $this->fe('blood_gas_analysis', 'hhb.remark', '备注'),

            $this->fe('blood_gas_analysis', 'methb.result_n', '高铁血红蛋白', '%'),
            $this->fe('blood_gas_analysis', 'methb.allergy', '药敏结果'),
            $this->fe('blood_gas_analysis', 'methb.critical', '危急提示'),
            $this->fe('blood_gas_analysis', 'methb.remark', '备注'),

            $this->fe('blood_gas_analysis', 'be.result_n', '剩余碱', 'mmol/L'),
            $this->fe('blood_gas_analysis', 'be.allergy', '药敏结果'),
            $this->fe('blood_gas_analysis', 'be.critical', '危急提示'),
            $this->fe('blood_gas_analysis', 'be.remark', '备注'),

            $this->fe('blood_gas_analysis', 'beecf.result_n', '细胞外剩余碱', 'mmol/L'),
            $this->fe('blood_gas_analysis', 'beecf.allergy', '药敏结果'),
            $this->fe('blood_gas_analysis', 'beecf.critical', '危急提示'),
            $this->fe('blood_gas_analysis', 'beecf.remark', '备注'),

            $this->fe('blood_gas_analysis', 'bb.result_n', '缓冲碱', 'mmol/L'),
            $this->fe('blood_gas_analysis', 'bb.allergy', '药敏结果'),
            $this->fe('blood_gas_analysis', 'bb.critical', '危急提示'),
            $this->fe('blood_gas_analysis', 'bb.remark', '备注'),

            $this->fe('blood_gas_analysis', 'chco3.result_n', '碳酸氢盐', 'mmol/L'),
            $this->fe('blood_gas_analysis', 'chco3.allergy', '药敏结果'),
            $this->fe('blood_gas_analysis', 'chco3.critical', '危急提示'),
            $this->fe('blood_gas_analysis', 'chco3.remark', '备注'),

            $this->fe('blood_gas_analysis', 'ctco2b.result_n', '二氧化碳的总浓度', 'mmol/L'),
            $this->fe('blood_gas_analysis', 'ctco2b.allergy', '药敏结果'),
            $this->fe('blood_gas_analysis', 'ctco2b.critical', '危急提示'),
            $this->fe('blood_gas_analysis', 'ctco2b.remark', '备注'),

            $this->fe('blood_gas_analysis', 'aado2.result_n', '动脉静脉氧张力比', 'mmol/L'),
            $this->fe('blood_gas_analysis', 'aado2.allergy', '药敏结果'),
            $this->fe('blood_gas_analysis', 'aado2.critical', '危急提示'),
            $this->fe('blood_gas_analysis', 'aado2.remark', '备注'),

            $this->fe('blood_gas_analysis', 'h.result_n', '氢离子浓度', 'mmol/L'),
            $this->fe('blood_gas_analysis', 'h.allergy', '药敏结果'),
            $this->fe('blood_gas_analysis', 'h.critical', '危急提示'),
            $this->fe('blood_gas_analysis', 'h.remark', '备注'),

            $this->fe('blood_gas_analysis', 'phst.result_n', '标准PH值'),
            $this->fe('blood_gas_analysis', 'phst.allergy', '药敏结果'),
            $this->fe('blood_gas_analysis', 'phst.critical', '危急提示'),
            $this->fe('blood_gas_analysis', 'phst.remark', '备注'),

            $this->fe('blood_gas_analysis', 'chco3st.result_n', '标准碳酸氢盐', 'mmol/L'),
            $this->fe('blood_gas_analysis', 'chco3st.allergy', '药敏结果'),
            $this->fe('blood_gas_analysis', 'chco3st.critical', '危急提示'),
            $this->fe('blood_gas_analysis', 'chco3st.remark', '备注'),

            $this->fe('blood_gas_analysis', 'lac.result_n', '乳酸值', 'mmol/L'),
            $this->fe('blood_gas_analysis', 'lac.allergy', '药敏结果'),
            $this->fe('blood_gas_analysis', 'lac.critical', '危急提示'),
            $this->fe('blood_gas_analysis', 'lac.remark', '备注'),

            $this->fe('blood_gas_analysis', 'hco3_.result_n', '酸氢根值', 'mmol/L'),
            $this->fe('blood_gas_analysis', 'hco3_.allergy', '药敏结果'),
            $this->fe('blood_gas_analysis', 'hco3_.critical', '危急提示'),
            $this->fe('blood_gas_analysis', 'hco3_.remark', '备注'),
        ];

        return ['time'=> $this->model->blood_gas_analysis['time'], 'print' => $this->getPrintStr('', $print)];
    }

    public function bloodCoagulationTwo()
    {
        if (!$this->model->blood_coagulation_two) {
            return '';
        }

        $print = [];



        $print = [

            $this->fe('blood_coagulation_two', 'pt.result_n', '凝血酶原时间', 's'),
            $this->fe('blood_coagulation_two', 'pt.allergy', '药敏结果'),
            $this->fe('blood_coagulation_two', 'pt.critical', '危急提示'),
            $this->fe('blood_coagulation_two', 'pt.remark', '备注'),

            $this->fe('blood_coagulation_two', 'pt%.result_n', '凝血酶原活动度'),
            $this->fe('blood_coagulation_two', 'pt%.allergy', '药敏结果'),
            $this->fe('blood_coagulation_two', 'pt%.critical', '危急提示'),
            $this->fe('blood_coagulation_two', 'pt%.remark', '备注'),

            $this->fe('blood_coagulation_two', 'inr.result_n', '国际标准化比值'),
            $this->fe('blood_coagulation_two', 'inr.allergy', '药敏结果'),
            $this->fe('blood_coagulation_two', 'inr.critical', '危急提示'),
            $this->fe('blood_coagulation_two', 'inr.remark', '备注'),

            $this->fe('blood_coagulation_two', 'fbg.result_n', '纤维蛋白原', 'g/L'),
            $this->fe('blood_coagulation_two', 'fbg.allergy', '药敏结果'),
            $this->fe('blood_coagulation_two', 'fbg.critical', '危急提示'),
            $this->fe('blood_coagulation_two', 'fbg.remark', '备注'),

            $this->fe('blood_coagulation_two', 'aptt.result_n', '活化部分凝血活酶时间', 's'),
            $this->fe('blood_coagulation_two', 'aptt.allergy', '药敏结果'),
            $this->fe('blood_coagulation_two', 'aptt.critical', '危急提示'),
            $this->fe('blood_coagulation_two', 'aptt.remark', '备注'),

            $this->fe('blood_coagulation_two', 'aptt-r.result_n', '活化部分凝血活酶时间比值'),
            $this->fe('blood_coagulation_two', 'aptt-r.allergy', '药敏结果'),
            $this->fe('blood_coagulation_two', 'aptt-r.critical', '危急提示'),
            $this->fe('blood_coagulation_two', 'aptt-r.remark', '备注'),

            $this->fe('blood_coagulation_two', 'tt.result_n', '凝血酶时间', 's'),
            $this->fe('blood_coagulation_two', 'tt.allergy', '药敏结果'),
            $this->fe('blood_coagulation_two', 'tt.critical', '危急提示'),
            $this->fe('blood_coagulation_two', 'tt.remark', '备注'),

            $this->fe('blood_coagulation_two', 'd-dimer.result_n', '血浆D-二聚体', 'mg/L FEU'),
            $this->fe('blood_coagulation_two', 'd-dimer.allergy', '药敏结果'),
            $this->fe('blood_coagulation_two', 'd-dimer.critical', '危急提示'),
            $this->fe('blood_coagulation_two', 'd-dimer.remark', '备注'),
        ];

        if ($this->scene->isWestern()) {
            array_unshift($print, '凝血2'.$this->ft('auxiliary.site', $this->fe('blood_coagulation_two', 'site'), '(', ')'));
        } else {
            array_unshift($print, '凝血功能'.$this->ft('auxiliary.site', $this->fe('blood_coagulation_two', 'site'), '(', ')'));
        }

        return ['time'=> $this->model->blood_coagulation_two['time'], 'print' => $this->getPrintStr('', $print)];
    }

    public function bloodCoagulationOne()
    {
        if (!$this->model->blood_coagulation_one) {
            return '';
        }

        $print = [
            //            $this->fe('blood_coagulation_one', 'time'),
            '血沉'.$this->ft('auxiliary.site', $this->fe('blood_coagulation_one', 'site'), '(', ')'),

            $this->fe('blood_coagulation_one', 'esr.result_n', '血沉'),
            $this->fe('blood_coagulation_one', 'esr.allergy', '药敏结果'),
            $this->fe('blood_coagulation_one', 'esr.critical', '危急提示'),
            $this->fe('blood_coagulation_one', 'esr.remark', '备注'),
        ];

        return ['time'=> $this->model->blood_coagulation_one['time'], 'print' => $this->getPrintStr('', $print)];
    }

    public function dexamethasoneSuppression()
    {
        if (!$this->model->dexamethasone_suppression) {
            return '';
        }

        $print = [
//            $this->fe('dexamethasone_suppression', 'time'),
            '地塞米松抑制试验'.$this->ft('auxiliary.site', $this->fe('dexamethasone_suppression', 'site'), '(', ')'),

            $this->fe('dexamethasone_suppression', '24hufc(d1).result_n', '联合大小DST实验24hUFC(对照日1)'),
            $this->fe('dexamethasone_suppression', '24hufc(d1).allergy', '药敏结果'),
            $this->fe('dexamethasone_suppression', '24hufc(d1).critical', '危急提示'),
            $this->fe('dexamethasone_suppression', '24hufc(d1).remark', '备注'),

            $this->fe('dexamethasone_suppression', '24hufc(d2).result_n', '联合大小DST实验24hUFC(对照日2)'),
            $this->fe('dexamethasone_suppression', '24hufc(d2).allergy', '药敏结果'),
            $this->fe('dexamethasone_suppression', '24hufc(d2).critical', '危急提示'),
            $this->fe('dexamethasone_suppression', '24hufc(d2).remark', '备注'),

            $this->fe('dexamethasone_suppression', '24hufc(d4).result_n', '联合大小DST实验24hUFC(小量第2日)'),
            $this->fe('dexamethasone_suppression', '24hufc(d4).allergy', '药敏结果'),
            $this->fe('dexamethasone_suppression', '24hufc(d4).critical', '危急提示'),
            $this->fe('dexamethasone_suppression', '24hufc(d4).remark', '备注'),

            $this->fe('dexamethasone_suppression', '24hufc(d6).result_n', '联合大小DST实验24hUFC(大量第2日)'),
            $this->fe('dexamethasone_suppression', '24hufc(d6).allergy', '药敏结果'),
            $this->fe('dexamethasone_suppression', '24hufc(d6).critical', '危急提示'),
            $this->fe('dexamethasone_suppression', '24hufc(d6).remark', '备注'),
        ];

        return ['time'=> $this->model->dexamethasone_suppression['time'], 'print' => $this->getPrintStr('', $print)];
    }

    public function hydroxyvitamin()
    {
        if (!$this->model->hydroxyvitamin) {
            return '';
        }

        if ($this->scene->isWestern()) {
            $print = [
                '25羟维生素D3'.$this->ft('auxiliary.site', $this->fe('hydroxyvitamin', 'site'), '(', ')'),
                $this->fe('hydroxyvitamin', '25oho2.result_n', '25羟维生素D2', 'ng/ml'),
                $this->fe('hydroxyvitamin', '25oho2.allergy', '药敏结果'),
                $this->fe('hydroxyvitamin', '25oho2.critical', '危急提示'),
                $this->fe('hydroxyvitamin', '25oho2.remark', '备注'),

                $this->fe('hydroxyvitamin', 't-25ohd.result_n', '25羟维生素D', 'ng/ml'),
                $this->fe('hydroxyvitamin', 't-25ohd.allergy', '药敏结果'),
                $this->fe('hydroxyvitamin', 't-25ohd.critical', '危急提示'),
                $this->fe('hydroxyvitamin', 't-25ohd.remark', '备注'),

                $this->fe('hydroxyvitamin', '25ohd3.result_n', '25羟维生素D3', 'ng/ml'),
                $this->fe('hydroxyvitamin', '25ohd3.allergy', '药敏结果'),
                $this->fe('hydroxyvitamin', '25ohd3.critical', '危急提示'),
                $this->fe('hydroxyvitamin', '25ohd3.remark', '备注'),
            ];
        } else {
            $print = [
                '骨代谢'.$this->ft('auxiliary.site', $this->fe('hydroxyvitamin', 'site'), '(', ')'),
                $this->fe('hydroxyvitamin', '25oho2.result_n', '25羟维生素D2', 'ng/ml'),
                $this->fe('hydroxyvitamin', '25oho2.allergy', '药敏结果'),
                $this->fe('hydroxyvitamin', '25oho2.critical', '危急提示'),
                $this->fe('hydroxyvitamin', '25oho2.remark', '备注'),

                $this->fe('hydroxyvitamin', 't-25ohd.result_n', '25羟维生素D', 'ng/ml'),
                $this->fe('hydroxyvitamin', 't-25ohd.allergy', '药敏结果'),
                $this->fe('hydroxyvitamin', 't-25ohd.critical', '危急提示'),
                $this->fe('hydroxyvitamin', 't-25ohd.remark', '备注'),

                $this->fe('hydroxyvitamin', '25ohd3.result_n', '25羟维生素D3', 'ng/ml'),
                $this->fe('hydroxyvitamin', '25ohd3.allergy', '药敏结果'),
                $this->fe('hydroxyvitamin', '25ohd3.critical', '危急提示'),
                $this->fe('hydroxyvitamin', '25ohd3.remark', '备注'),

                $this->fe('hydroxyvitamin', 'vitdt.result_n', '总维生素D', 'ng/ml'),
                $this->fe('hydroxyvitamin', 'vitdt.allergy', '药敏结果'),
                $this->fe('hydroxyvitamin', 'vitdt.critical', '危急提示'),
                $this->fe('hydroxyvitamin', 'vitdt.remark', '备注'),

                $this->fe('hydroxyvitamin', 'osteoc.result_n', '骨钙素', 'ng/ml'),
                $this->fe('hydroxyvitamin', 'osteoc.allergy', '药敏结果'),
                $this->fe('hydroxyvitamin', 'osteoc.critical', '危急提示'),
                $this->fe('hydroxyvitamin', 'osteoc.remark', '备注'),

                $this->fe('hydroxyvitamin', 'ipth.result_n', '全段甲状腺旁激素测定', 'ng/ml'),
                $this->fe('hydroxyvitamin', 'ipth.allergy', '药敏结果'),
                $this->fe('hydroxyvitamin', 'ipth.critical', '危急提示'),
                $this->fe('hydroxyvitamin', 'ipth.remark', '备注'),

                $this->fe('hydroxyvitamin', 'ct.result_n', '降钙素', 'ng/ml'),
                $this->fe('hydroxyvitamin', 'ct.allergy', '药敏结果'),
                $this->fe('hydroxyvitamin', 'ct.critical', '危急提示'),
                $this->fe('hydroxyvitamin', 'ct.remark', '备注'),

                $this->fe('hydroxyvitamin', 'crosslaps.result_n', 'I型胶原降解产物', 'ng/ml'),
                $this->fe('hydroxyvitamin', 'crosslaps.allergy', '药敏结果'),
                $this->fe('hydroxyvitamin', 'crosslaps.critical', '危急提示'),
                $this->fe('hydroxyvitamin', 'crosslaps.remark', '备注'),

                $this->fe('hydroxyvitamin', 'tp1np.result_n', '总I型胶原氨基末端肽检测', 'ng/ml'),
                $this->fe('hydroxyvitamin', 'tp1np.allergy', '药敏结果'),
                $this->fe('hydroxyvitamin', 'tp1np.critical', '危急提示'),
                $this->fe('hydroxyvitamin', 'tp1np.remark', '备注'),
            ];
        }

        return ['time'=> $this->model->hydroxyvitamin['time'], 'print' => $this->getPrintStr('', $print)];
    }

    public function ucaUp()
    {
        if (!$this->model->uca_up) {
            return '';
        }

        $print = [
//            $this->fe('uca_up', 'time'),
            '24h尿钙（U-Ca）+24h尿磷（U-P）'.$this->ft('auxiliary.site', $this->fe('uca_up', 'site'), '(', ')'),

            $this->fe('uca_up', '24hu-v.result_n', '24小时尿量', 'ml'),
            $this->fe('uca_up', '24hu-v.allergy', '药敏结果'),
            $this->fe('uca_up', '24hu-v.critical', '危急提示'),
            $this->fe('uca_up', '24hu-v.remark', '备注'),

            $this->fe('uca_up', 'u-ca.result_n', '尿钙', 'mmol/L'),
            $this->fe('uca_up', 'u-ca.allergy', '药敏结果'),
            $this->fe('uca_up', 'u-ca.critical', '危急提示'),
            $this->fe('uca_up', 'u-ca.remark', '备注'),

            $this->fe('uca_up', 'u-p.result_n', '尿磷', 'mmol/L'),
            $this->fe('uca_up', 'u-p.allergy', '药敏结果'),
            $this->fe('uca_up', 'u-p.critical', '危急提示'),
            $this->fe('uca_up', 'u-p.remark', '备注'),

            $this->fe('uca_up', '24huca.result_n', '24小时尿钙', 'mmol/24h'),
            $this->fe('uca_up', '24huca.allergy', '药敏结果'),
            $this->fe('uca_up', '24huca.critical', '危急提示'),
            $this->fe('uca_up', '24huca.remark', '备注'),

            $this->fe('uca_up', '24hup.result_n', '24小时尿磷', 'mmol/24h'),
            $this->fe('uca_up', '24hup.allergy', '药敏结果'),
            $this->fe('uca_up', '24hup.critical', '危急提示'),
            $this->fe('uca_up', '24hup.remark', '备注'),
        ];

        return ['time'=> $this->model->uca_up['time'], 'print' => $this->getPrintStr('', $print)];
    }

    public function collagenDegradation()
    {
        if (!$this->model->collagen_degradation) {
            return '';
        }

        $print = [
//            $this->fe('collagen_degradation', 'time'),
            'β-胶原降解产物测定'.$this->ft('auxiliary.site', $this->fe('collagen_degradation', 'site'), '(', ')'),

            $this->fe('collagen_degradation', 'β-ctx.result_n', 'β-胶原降解产物', 'g'),
            $this->fe('collagen_degradation', 'β-ctx.allergy', '药敏结果'),
            $this->fe('collagen_degradation', 'β-ctx.critical', '危急提示'),
            $this->fe('collagen_degradation', 'β-ctx.remark', '备注'),
        ];

        return ['time'=> $this->model->collagen_degradation['time'], 'print' => $this->getPrintStr('', $print)];
    }

    public function iconography()
    {
        if (!$this->model->iconography) {
            return '';
        }

        $print = [
//            $this->fe('iconography', 'time'),
            '影像学检查'.$this->ft('auxiliary.site', $this->fe('iconography', 'site'), '(', ')'),
        ];

        return ['time'=> $this->model->iconography['time'], 'print' => $this->getPrintStr('', $print)];
    }
}